Boolean expressions are relational comparisons between numeric expressions resulting in a value of either True or False. Boolean expressions are used most often in IF...THEN and other control statements. The following relational operators are used in Boolean expressions:
Operator |
Meaning |
= |
|
> |
|
< |
Less than |
>= |
|
<= |
Less than or equal to |
<> |
Relational operator examples
A = B
A > B
A < B
A >= B
A <= B
A <> B
Spacing between the terms and operators within a numeric expression is optional. However, for operators with two characters (for example, >=, <=, <>), no spaces are allowed between characters in the operator.
Additionally, the following operators compare two Boolean expressions.
Operator |
Meaning |
TRUE if both expressions are TRUE |
|
TRUE if one expression is TRUE |
|
Makes TRUE expressions FALSE and FALSE expressions TRUE |
For information on operator precedence and nesting rules, see Operator Precedence.
![]() |
© 2012 ProModel Corporation • 556 East Technology Avenue • Orem, UT 84097 • Support: 888-776-6633 • www.promodel.com |